import request from '@/utils/request'
export default{
    getSettleCategoryListPage(page,limit,keyword){
        return request({
            url: `/settlecategory/pageSettleCategory?page=${page}&limit=${limit}&keyword=${keyword}`, // 分页查询
            method: 'get'
          })
    },
    updateSettleCategory(updateForm){
        return request({
          url: `/settlecategory/updateSettleCategory`, // 根据id修改
          method: 'post',
          data: updateForm
        })
    },
    addSettleCategory(addForm){
        return request({
          url: `/settlecategory/addSettleCategory`, // 添加的api
          method: 'post',
          data: addForm
        })
    },
    delSettleCategoryById(id) {
        return request({
            url: `/settlecategory/deleteSettleCategory?id=${id}`, // 根据id删除
            method: 'post' 
        })
    },
}